home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14385 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 65 6e 67 | 2e 63 6f 6e 76 65 78 2e |news.eng|.convex.|
|00000030| 63 6f 6d 21 61 72 63 6f | 21 75 73 65 6e 65 74 0a |com!arco|!usenet.|
|00000040| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 4c 65 61 63 |From: Br|ian Leac|
|00000050| 68 20 3c 6c 61 73 62 66 | 6c 40 61 61 69 2e 61 72 |h <lasbf|l@aai.ar|
|00000060| 63 6f 2e 63 6f 6d 3e 0a | 53 75 62 6a 65 63 74 3a |co.com>.|Subject:|
|00000070| 20 52 65 3a 20 48 6f 77 | 20 74 6f 20 69 6e 69 74 | Re: How| to init|
|00000080| 69 61 6c 69 7a 65 20 61 | 72 72 61 79 20 6f 66 20 |ialize a|rray of |
|00000090| 6f 62 6a 65 63 74 73 20 | 75 73 69 6e 67 20 6e 6f |objects |using no|
|000000a0| 6e 2d 76 6f 69 64 20 63 | 6f 6e 73 74 72 75 63 74 |n-void c|onstruct|
|000000b0| 6f 72 3f 0a 58 2d 4e 6e | 74 70 2d 50 6f 73 74 69 |or?.X-Nn|tp-Posti|
|000000c0| 6e 67 2d 48 6f 73 74 3a | 20 31 33 36 2e 32 32 36 |ng-Host:| 136.226|
|000000d0| 2e 31 31 36 2e 31 0a 43 | 6f 6e 74 65 6e 74 2d 54 |.116.1.C|ontent-T|
|000000e0| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|000000f0| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|00000100| 69 0a 54 6f 3a 20 6c 6c | 75 40 74 31 33 2e 6c 61 |i.To: ll|u@t13.la|
|00000110| 6e 6c 2e 67 6f 76 0a 4d | 65 73 73 61 67 65 2d 49 |nl.gov.M|essage-I|
|00000120| 44 3a 20 3c 33 31 35 43 | 38 46 36 35 2e 37 38 44 |D: <315C|8F65.78D|
|00000130| 35 40 61 61 69 2e 61 72 | 63 6f 2e 63 6f 6d 3e 0a |5@aai.ar|co.com>.|
|00000140| 53 65 6e 64 65 72 3a 20 | 75 73 65 6e 65 74 40 6e |Sender: |usenet@n|
|00000150| 65 77 73 2e 61 72 63 6f | 2e 63 6f 6d 0a 43 6f 6e |ews.arco|.com.Con|
|00000160| 74 65 6e 74 2d 54 72 61 | 6e 73 66 65 72 2d 45 6e |tent-Tra|nsfer-En|
|00000170| 63 6f 64 69 6e 67 3a 20 | 37 62 69 74 0a 4f 72 67 |coding: |7bit.Org|
|00000180| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 41 52 43 4f 20 |anizatio|n: ARCO |
|00000190| 41 6c 61 73 6b 61 20 49 | 6e 63 2e 0a 52 65 66 65 |Alaska I|nc..Refe|
|000001a0| 72 65 6e 63 65 73 3a 20 | 3c 34 6a 62 75 6f 35 24 |rences: |<4jbuo5$|
|000001b0| 6d 63 62 40 6e 65 77 73 | 68 6f 73 74 2e 6c 61 6e |mcb@news|host.lan|
|000001c0| 6c 2e 67 6f 76 3e 0a 4d | 69 6d 65 2d 56 65 72 73 |l.gov>.M|ime-Vers|
|000001d0| 69 6f 6e 3a 20 31 2e 30 | 0a 44 61 74 65 3a 20 53 |ion: 1.0|.Date: S|
|000001e0| 61 74 2c 20 33 30 20 4d | 61 72 20 31 39 39 36 20 |at, 30 M|ar 1996 |
|000001f0| 30 31 3a 33 33 3a 32 35 | 20 47 4d 54 0a 58 2d 4d |01:33:25| GMT.X-M|
|00000200| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 32 |ailer: M|ozilla 2|
|00000210| 2e 30 20 28 58 31 31 3b | 20 49 3b 20 48 50 2d 55 |.0 (X11;| I; HP-U|
|00000220| 58 20 41 2e 30 39 2e 30 | 35 20 39 30 30 30 2f 37 |X A.09.0|5 9000/7|
|00000230| 35 35 29 0a 0a 4c 69 61 | 6e 67 20 4c 75 20 77 72 |55)..Lia|ng Lu wr|
|00000240| 6f 74 65 3a 0a 3e 20 0a | 3e 20 45 78 61 6d 70 6c |ote:.> .|> Exampl|
|00000250| 65 3a 0a 3e 20 0a 3e 20 | 63 6c 61 73 73 20 54 61 |e:.> .> |class Ta|
|00000260| 62 6c 65 20 7b 0a 3e 20 | 20 20 20 20 20 20 20 20 |ble {.> | |
|00000270| 54 61 62 6c 65 28 29 20 | 3b 0a 3e 20 20 20 20 20 |Table() |;.> |
|00000280| 20 20 20 20 54 61 62 6c | 65 28 69 6e 74 20 6e 29 | Tabl|e(int n)|
|00000290| 20 3b 0a 3e 20 2e 2e 0a | 3e 20 7d 20 3b 0a 3e 20 | ;.> ...|> } ;.> |
|000002a0| 0a 3e 20 54 61 62 6c 65 | 20 6f 62 6a 65 63 74 5b |.> Table| object[|
|000002b0| 31 30 5d 20 3b 20 2f 2f | 20 64 65 66 61 75 6c 74 |10] ; //| default|
|000002c0| 20 63 6f 6e 73 74 72 75 | 63 74 6f 72 20 61 72 65 | constru|ctor are|
|000002d0| 20 75 73 65 64 20 68 65 | 72 65 0a 3e 20 0a 3e 20 | used he|re.> .> |
|000002e0| 42 75 74 2c 20 48 6f 77 | 20 63 61 6e 20 49 20 68 |But, How| can I h|
|000002f0| 61 76 65 20 31 30 20 6f | 62 6a 65 63 74 73 20 65 |ave 10 o|bjects e|
|00000300| 61 63 68 20 77 69 74 68 | 20 64 69 66 66 65 72 65 |ach with| differe|
|00000310| 6e 74 20 6e 2c 20 69 2e | 65 2e 2c 20 68 6f 77 20 |nt n, i.|e., how |
|00000320| 74 6f 20 75 73 65 20 74 | 68 65 0a 3e 20 73 65 63 |to use t|he.> sec|
|00000330| 6f 6e 64 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 20 |ond cons|tructor |
|00000340| 66 6f 72 20 61 72 72 61 | 79 20 69 6e 69 74 69 61 |for arra|y initia|
|00000350| 6c 69 7a 61 74 69 6f 6e | 3f 20 50 6c 65 61 73 65 |lization|? Please|
|00000360| 20 65 6d 61 69 6c 20 6d | 65 20 74 68 65 20 61 6e | email m|e the an|
|00000370| 73 77 65 72 2e 0a 3e 20 | 0a 3e 20 2d 2d 0a 3e 20 |swer..> |.> --.> |
|00000380| 42 65 73 74 20 52 65 67 | 61 72 64 73 2c 0a 3e 20 |Best Reg|ards,.> |
|00000390| 0a 3e 20 4c 69 61 6e 67 | 0a 0a 0a 53 6f 72 72 79 |.> Liang|...Sorry|
|000003a0| 20 4c 69 61 6e 67 2c 20 | 69 74 20 69 73 20 6e 6f | Liang, |it is no|
|000003b0| 74 20 70 6f 73 73 69 62 | 6c 65 2e 20 54 68 65 20 |t possib|le. The |
|000003c0| 6c 61 6e 67 75 61 67 65 | 20 64 6f 65 73 20 6e 6f |language| does no|
|000003d0| 74 20 61 6c 6c 6f 77 20 | 66 6f 72 0a 6e 6f 6e 2d |t allow |for.non-|
|000003e0| 64 65 66 61 75 6c 74 0a | 63 6f 6e 73 74 72 75 63 |default.|construc|
|000003f0| 74 6f 72 73 20 66 6f 72 | 20 61 72 72 61 79 73 20 |tors for| arrays |
|00000400| 6f 66 20 6f 62 6a 65 63 | 74 73 2e 0a 0a 2d 42 72 |of objec|ts...-Br|
|00000410| 69 61 6e 20 3a 2d 29 0a | |ian :-).| |
+--------+-------------------------+-------------------------+--------+--------+